package com.atguigu.gmall.product.service;

import com.atguigu.gmall.model.product.*;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;

/**
 * @ author     ：廖传港
 * @ date       ：Created in 2020/12/21 19:47
 * @ description：
 * @ modified By：
 * @ ersion:
 */
public interface ManagerService {
    List<BaseCategory1> getCategory1();

    List<BaseCategory2> getCategory2(Long category1Id);

    List<BaseCategory3> getCategory3(Long category2Id);

    List<BaseAttrInfo> attrInfoList(Long category1Id, Long category2Id, Long category3Id);

    void saveAttrInfo(BaseAttrInfo baseAttrInfo);

    BaseAttrInfo getAttrValueList(Long attrId);


    IPage<BaseTrademark> baseTrademark(Integer page, Integer limit);

    BaseTrademark getbaseTrademark(Integer id);

    void update(BaseTrademark trademark);

    void save(BaseTrademark trademark);

    void removeBaseTrademark(Long id);

    IPage<SpuInfo> spuList(Integer page, Integer limit, Long category3Id);

    List<BaseSaleAttr> baseSaleAttrList();

    List<BaseTrademark> getTrademarkList();

    void saveSpuInfo(SpuInfo spuInfo);

    List<SpuImage> spuImageList(Long spuId);

    List<SpuSaleAttr> spuSaleAttrList(Long spuId);

    void saveSkuInfo(SkuInfo skuInfo);

    IPage list(Integer page, Integer limit);

    void onSale(Long skuId);

    void cancelSale(Long skuId);
}
